/*
 * @Author: gismanli@tencent.com
 * @Date: 2019-05-07 14:07:53
 * @Last Modified by: lili
 * @Last Modified time: 2019-07-25 10:24:24
 */

const HttpProxyAgent = require('http-proxy-agent');
const agent = new HttpProxyAgent('http://proxy.tencent.com:8080');

module.exports = {
  devServer: {
    proxy: {
      '/proxy': {
        // target: 'http://127.0.0.1:3000',
        target: 'http://wechat.thyclub.com',
        agent,
        changeOrigin: true,
        pathRewrite: {
          '^/proxy': ''
        }
      }
    }
  }
};
